import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/Orders/getList',
    method: 'get',
    params: query
  })
}

export function createArticle(data) {
  return request({
    url: '/Orders/getAdd',
    method: 'post',
    data
  })
}

export function getUserList(data) {
  return request({
    url: '/Users/getAllUsers',
    method: 'post',
    data
  })
}

export function getDel(data) {
  return request({
    url: '/Orders/getDel',
    method: 'post',
    data
  })
}
//修改状态
export function getEditstatus(data) {
  return request({
    url: '/Orders/getEditstatus',
    method: 'post',
    data
  })
}
//修改
export function updateArticle(data) {
  return request({
    url: '/Orders/getEdit',
    method: 'post',
    data
  })
}
//设置师傅
export function updateArticlesf(data) {
  return request({
    url: '/Orders/getEditsf',
    method: 'post',
    data
  })
}
//修改师傅
export function updatexgsf(data) {
  return request({
    url: '/Orders/getEditxgsf',
    method: 'post',
    data
  })
}
//统计
export function getTjList(data) {
  return request({
    url: '/Orders/getTjList',
    method: 'post',
    data
  })
}

//倒出数据

export function getListAll(data) {
  return request({
    url: '/Orders/getListAll',
    method: 'post',
    data
  })
}